import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes: Array<RouteConfig> = [
  {
    path: '/',
    name: 'Login',
    component: () => import('../components/Login.vue')
  },
  {
    path: '/Login',
    name: 'Login',
    component: () => import('../components/Login.vue')
  },
  {
    path: '/Index',
    name: 'Index',
    component: () => import('../views/Index.vue')
  },
  {
    path: '/Supplier',
    name: 'Supplier',
    component: () => import('../components/Supplier.vue')
  },
  {
    path: '/Client',
    name: 'Client',
    component: () => import('../components/Client.vue')
  },
  {
    path: '/UpdatePwd',
    name: 'UpdatePwd',
    component: () => import('../components/UpdatePwd.vue')
  },
  {
    path: '/Daily',
    name: 'Daily',
    component: () => import('../components/Daily.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
